search.parse();
var tdg = search.get("datagrid");

$(function(){
	tdg.url =  __ctx + "/members/gettheallintegralrecords.xhtml";
	tdg.load({"memberid":memberid});
})

function ondrawcell(e){
	if(e.column.field == "recordtype"){
		if(e.record.recordtype){
			if(e.record.recordtype == 1){
				e.html = "支出";
			}else if(e.record.recordtype == 2){
				e.html = "收入";
			}
		}
	}
}
